package com.wuxiaofan.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user")
public class User extends Model<User> {
    private static final long serialVersionUID = 1L;

    private long id;
    //手机号
    private String phoneNumber;
    //用户名
    private String nickname;
    //密码:md5(md5(pass明文+salt)+salt)
    private String password;
    //盐值
    private String slat;
    //头像地址
    private String head;
    //注册时间
    private Date registerDate;
    //最后登录时间
    private Date lastLoginDate;
    //登录次数
    private int loginCount;
}
